//
//  HTTPManager.h
//  B_test
//
//  Created by lanou3g on 15/9/18.
//  Copyright (c) 2015年 chehao. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AFHTTPRequestOperationManager.h"

@interface HTTPManager : AFHTTPRequestOperationManager

+ (instancetype)manager;

//GET请求
+ (void)get:(NSString *)url success:(void (^)(AFHTTPRequestOperation * operation, id responseObject))success;

//POST请求
+ (void)post:(NSString *)url parameters:(NSDictionary *)parameters success:(void (^)(AFHTTPRequestOperation *  operation, id  responseObject))success;




//GET请求
+ (void)get:(NSString *)url success:(void (^)(AFHTTPRequestOperation * operation, id responseObject))success failure:(void (^)(AFHTTPRequestOperation * operation, NSError * error))failure;

//POST请求
+ (void)post:(NSString *)url parameters:(NSDictionary *)parameters success:(void (^)(AFHTTPRequestOperation *  operation, id  responseObject))success failure:(void (^)(AFHTTPRequestOperation * operation, NSError * error))failure;

@end
